<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <!-- <script>
      {
        var a = '1';
        let b = 2;
      }
      alert(a)
      // b不能被识别
      alert(b)
    </script> -->

    <!-- <script>
      var a = 1
      var a = 2
      let b = 1
      //不能再被声明
      let b = 2
      alert(a)
    </script> -->

  <!--  <script>
      alert(a)
      var a = 1
      //b不能被提前识别
      alert(b)
      let b = 1
    </script> -->
    <script>
      //常量不能被改变
      const a = 1
      a = 3
    </script>

</body>
</html>
